]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
notificationDaemon: Fix custom icons
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 27 Oct 2013 10:32:27 +0000 (11:32 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 28 Oct 2013 11:28:37 +0000 (12:28 +0100)
The 'icon' property contains a serialized GIcon, so we need to
deserialize it when setting the icon.

https://bugzilla.gnome.org/show_bug.cgi?id=710596

js/ui/notificationDaemon.js

index a1b76ab15630b91c4ea88d41defcfbe145cbc655..96b1472742f5537d96b9bc6297acd2b604e66cb3 100644 (file)
@@ -745,7 +745,8 @@ const GtkNotificationDaemonNotification = new Lang.Class({
         this._defaultAction = defaultAction ? defaultAction.unpack() : null;
         this._defaultActionTarget = defaultActionTarget;
 
-        this.update(title.unpack(), body ? body.unpack() : null, { gicon: gicon });
+        this.update(title.unpack(), body ? body.unpack() : null,
+                    { gicon: gicon ? Gio.icon_deserialize(gicon) : null });
     },
 
     _activateAction: function(namespacedActionId, target) {